package cn.org.guhao.practice.spring.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TestController
 *
 * @author guhao
 * @since 2020/6/7
 */
@RestController
public class TestController {

  private static final Logger LOGGER = LoggerFactory.getLogger(TestController.class);

  @GetMapping("/info")
  public String info(){
    LOGGER.info("welcome");
    return "hello world";
  }

}
